home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_slashvine.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_SlashVine.cog
  4. #
  5. # Modified version of gen_SlashGrate.cog by [YB].
  6. # Damage the face with Machete to allow move through. 
  7. #
  8. # [TRM]     [GGJ]
  9. #
  10. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12. symbols
  13.     message     startup
  14.     message     damaged
  15.     
  16.     thing        vineGhost
  17.     thing        leaf        local
  18.     
  19.     surface     web            mask=0x8
  20.     surface        webback        mask=0x8
  21.     
  22.     vector        leafVel        local
  23.     
  24.     template    leaf0=slashLeaves    local
  25.     
  26.     int         type        local
  27.     int         player        local
  28.     int            leafNum=0    local
  29.     int            numLeaves=2    local
  30.     
  31. end
  32. # ========================================================================================
  33. code
  34.  
  35. startup:
  36.  
  37.     player = GetLocalPlayerThing();
  38.     return;
  39.     
  40. # ========================================================================================
  41. damaged:
  42.     
  43.     if (GetParam(1) == 0x20)
  44.     {
  45.         SetWallCel(web, 1);
  46.         SetWallCel(webback, 1);
  47.         ClearAdjoinFlags(web, 0x10);
  48.         SetAdjoinFlags(webback, 2);
  49.  
  50.             for(leafNum=0; leafNum<numLeaves; leafNum=leafNum+1)                                                                        
  51.             {                                                                                                    
  52.                 leaf=CreateThing(leaf0, vineGhost);
  53.                 leafVel = VectorSet(0, 0, -0.1);
  54.                 SetThingVel(leaf, VectorScale(leafVel, 0.7));
  55.             }
  56.    
  57.     }
  58.         
  59.     return;
  60.  
  61. # ========================================================================================
  62. end
  63.  
  64.